import {
    BASE_URL
} from '../../config';

import {
    http
} from '../index';

const TRADE_URL = BASE_URL + "/trade"

export function fetchOrderIconPreview(data,config){
    return http({
        data:data,
        ...config,
        url:TRADE_URL+"/audience/order/coin/preview"
    })
}


export function fetchOrderPlayletPreview(data,config){
    return http({
        data,
        ...config,
        url:TRADE_URL+"/audience/order/playlet/preview"
    })
}

export function orderPlayletUnlock(data,config){
    return http({
        data,
        method:'post',
        ...config,
        url:TRADE_URL+"/audience/order/playlet/unlock"
    })
}
export function orderCoin(data,config){
    return http({
        data,
        ...config,
        method:'post',
        url:TRADE_URL+"/audience/order/coin"
    })
}

